Skip to content

Conversation

@william-lukusa
Copy link
Contributor

Story details : [ch58204]

⚠️ use and merge with https://github.com/dataiku/dip/pull/12168

@william-lukusa william-lukusa self-assigned this Mar 8, 2021
@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #58204: MDG: Public API.

Copy link
Contributor

@FlorentDev64 FlorentDev64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@FlorentDev64 FlorentDev64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this two routes should be merged into one single route to avoid code duplication.
"GET", "/projects/%s/models/lab/documentations/%s" % (self.mltask.project_key, export_id))
"GET", "/projects/%s/savedmodels/documentations/%s" % (self.saved_model.project_key, export_id))

Because, we do not need to know where the documentation came from (savedModels or 'models/labs). Maybe we should have one single route like "GET", "/projects/%sdocumentations/%s" % (self.saved_model.project_key, export_id))`

If this is done, we should move the route to another file.

@william-lukusa
Copy link
Contributor Author

Because, we do not need to know where the documentation came from (savedModels or 'models/labs). Maybe we should have one single route like "GET", "/projects/%sdocumentations/%s" % (self.saved_model.project_key, export_id))`

@pbailly @adescamps what do you think ? We discussed it and I still think having the route /documentations/{exportId} in projects might be confusing and keeping it like that is better in the documentation. But I'd like to have some more feedback 😄

@pbailly pbailly added this to the 9.0.3 milestone Apr 19, 2021
@pbailly pbailly modified the milestone: 9.0.3 May 10, 2021
@william-lukusa william-lukusa merged commit bc2828e into release/9.0 May 31, 2021
@pbailly pbailly deleted the feature/dss902-mdg-public-api-wrapper branch June 2, 2021 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants